<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
 <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
<div class="t_bar"><span class="color_red">*</span>申报单位情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1" id="orgInfo">
	<tr>
		<td style="width: 18%;" align="right" nowrap>申报单位：</td>
		<td colspan="3">&nbsp;<span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		    </span>
		</td>
	</tr>
	<tr>
		<td  align="right">负责人：</td>
		<td>&nbsp;
		    <span name="organization_persons/person/cname" ><x:out select="$xmlData/data/organization_persons/person[@sequence_no='2']/cname" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >&nbsp;
		<span name="organization_persons/person/tel" ><x:out select="$xmlData/data/organization_persons/person[@sequence_no='2']/tel" /></span>
		</td>
	</tr>
	<tr>
		<td  align="right">通讯地址：</td>
		<td  >&nbsp;
		<span name="organizations/organization[0]/address" ><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /></span>
		</td>
		<td  align="right">邮政编码：</td>
		<td  >&nbsp;
		<span name="organizations/organization[0]/zip_code"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/zip_code" /></span>
		</td>
	</tr> 
	<tr>
		<td  align="right">联系人：</td>
		<td  >&nbsp;
			<span  name="organization_persons/organization_person/contact_name" /><x:out select="$xmlData/data/organization_persons/organization_person/contact_name" /></span> 
			
		
		</td>
		<td  align="right">手机号码：</td>
		<td  >&nbsp;
			<span  name="organization_persons/organization_person/contact_mobile" />
				<x:out select="$xmlData/data/organization_persons/organization_person/contact_mobile" />
			</span> 
		</td>
	</tr>
	<tr>
		<td  align="right">传真：</td>
		<td  >&nbsp;
			<!-- <span  name="organization/contact_info/contact_fax" /> -->
				<x:out select="$xmlData/data/organization/contact_info/contact_fax" />
			<!-- </span> -->
			<input  type="hidden" name="organization/contact_info/contact_fax" id="contact_fax"  label="传真" value="<x:out select="$xmlData/data/organization/contact_info/contact_fax" />"/>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >&nbsp;
			<span  name="organization_persons/organization_person/contact_email"/><x:out select="$xmlData/data/organization_persons/organization_person/contact_email" /></span>
		</td>
	</tr>
	<tr>
		<td align="right">注册类型：</td>
		<td colspan="3">&nbsp;
		   <span name="organizations/organization[0]/nature_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /> 
		    </span>
		    <input type="hidden" name="organizations/organization[0]/nature_value"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/>
		</td>
	</tr>
</table>
<div class="t_bar"><span class="color_red">*</span>单位人员情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="table6" cellspacing="1">
	<tr>
		<td align="right" rowspan="3" style="width: 15%;">县(区、市)科技局负责人：</td>
		<td rowspan="3" style="width: 15%;">&nbsp;
		   <input type="text" name="organization/kjj_fzr_name" label="县(区、市)科技局负责人"
		   class="input_css required" maxlength="50" style="width: 80%"
		     value="<x:out select="$xmlData/data/organization/kjj_fzr_name"/>"/>
		</td>
		<td align="right" style="width: 10%;">性别：</td>
		<td style="width: 15%;">&nbsp;
		    <c:set var="gender_value"><x:out select="$xmlData/data/organization/kjj_fzr_gender_value" /></c:set>
			<cpt:select id="kjj_fzr_gender" key="gender" name="kjj_fzr_gender" onChange="initControlValue(this.id);" value="${gender_value }" style="width:88%"></cpt:select>
			<input type="hidden" name="organization/kjj_fzr_gender_value" class="required" label="性别" value="<x:out select="$xmlData/data/organization/kjj_fzr_gender_value" />"/>
			<input type="hidden" name="organization/kjj_fzr_gender_name" value="<x:out select="$xmlData/data/organization/kjj_fzr_gender_name" />"/>
		</td>
		<td align="right" style="width: 15%;">出生年月：</td>
		<td style="width: 15%;">&nbsp;
		    <c:set var="kjj_fzr_birthday"><x:out select="$xmlData/data/organization/kjj_fzr_birthday" /></c:set>
			<cpt:date id="kjj_fzr_birthday" className="required date beforeToday inputWidth" label="出生日期"   name="organization/kjj_fzr_birthday" value="${kjj_fzr_birthday }"></cpt:date>
		</td>
	</tr>
		<c:set var="prof_title_value">{'id':'<x:out select="$xmlData/data/organization/prof_title_value" />','name':'<x:out select="$xmlData/data/organization/prof_title_name" />'}</c:set>
	<tr>
		<td align="right">职称：</td>
		
		<td  style="padding-left:10px"><cpt:tree key="prof_title" cacheable="false" readonly="true" value="${prof_title_value }" width="62%" id="prof_title" name="prof_title"  showPattern="all" shieldPattern="-1" onClick="initTreeValueExt"   label="职称" />
				<input type="hidden" id="prof_title_value" name="organization/prof_title_value" value="${prof_title_value }" class="required"  label="职称"/> 
				<input type="hidden" id="prof_title_name" name="organization/prof_title_name" value="<x:out select="$xmlData/data/organization/prof_title_name" />" />
				 <%-- <input type="text" name="organization/kjj_fzr_position" label="职称" class="required"  style="width: 80%" maxlength="50" value="<x:out select="$xmlData/data/organization/kjj_fzr_position" />"/> --%>
        </td>
        <td align="right">联系电话：</td>
		<td>&nbsp;
		    <input type="text" name="organization/kjj_fzr_tel" label="联系电话" class="required"  style="width: 80%" maxlength="20" value="<x:out select="$xmlData/data/organization/kjj_fzr_tel" />"/>
        </td>
	</tr>
		<tr>
		<td align="right">学历：</td>
		<td>&nbsp;
		    <%-- <input type="text" name="organization/kjj_fzr_education" class="required" label="学历"  maxlength="30"
		     style="width: 80%" value="<x:out select="$xmlData/data/organization/kjj_fzr_education" />"/> --%>
		     
		     <c:set var="educate"><x:out select='$xmlData/data/organization/educate_value' /></c:set>
		     <cpt:select key="educate" id="educate" 	onChange="initControlValue(this.id);" style="width:89%" value="${educate}" className="selectWidth"/> 
		     <input	id="educate_value" name="organization/educate_value" type="hidden" class="required" value="${educate}" label="学历">
			  <input id="educate_name" name="organization/educate_name" type="hidden"	value="<x:out select='$xmlData/data/organization/educate_name' />">
		     
		     
		     
		     
        </td>
        <td align="right">e-mail：</td>
		<td>&nbsp;
		    <input type="text" name="organization/kjj_fzr_email" class="email required" label="e-mail"  maxlength="50"
		    style="width: 80%" value="<x:out select="$xmlData/data/organization/kjj_fzr_email" />"/>
        </td>
	</tr>
	<tr>
		<td align="right" rowspan="3">项目组人数：</td>
		<td rowspan="3" >&nbsp;
		    <input type="text" name="organization/prj_menbers" label="项目组人数"  class="required" id="prj_menbers"
		    onfocus="InitInput.setNumber(this,9,0,0)" style="width: 80%;text-align: right;"
		    value="<x:out select="$xmlData/data/organization/prj_menbers" />"/>
		    
		    <input type="hidden" id="prj_total" name="organization/prj_total" label="高级、中级、初级、其他人数之和" 
		    class="valueEqual:prj_total:prj_menbers"
		    	value="<x:out select="$xmlData/data/organization/prj_total" />"
		    />
		</td>
		<td align="right">高级：</td>
		<td >&nbsp;
		    <input type="text" name="organization/prj_supper" label="高级" class="required"  id="prj_supper"
		    onfocus="InitInput.setNumber(this,9,0,0)" 
		    onchange="countFundAuto('prj_','supper,middle,primary,other','total');"
		    style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/organization/prj_supper" />"/>
		</td>
		<td align="right">中级：</td>
		<td>&nbsp;
		    <input type="text" name="organization/prj_middle" label="中级"  class="required"
		    onfocus="InitInput.setNumber(this,9,0,0)"  id="prj_middle"
		    onchange="countFundAuto('prj_','supper,middle,primary,other','total');"
		    style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/organization/prj_middle" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">初级：</td>
		<td >&nbsp;
		    <input type="text" name="organization/prj_primary" label="初级"  class="required" 
		    onfocus="InitInput.setNumber(this,9,0,0)" id="prj_primary"
		    onchange="countFundAuto('prj_','supper,middle,primary,other','total');"
		    style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/organization/prj_primary" />"/>
		</td>
		<td align="right">其他：</td>
		<td>&nbsp;
		    <input type="text" name="organization/prj_other" label="其他"  class="required" 
		    onfocus="InitInput.setNumber(this,9,0,0)" id="prj_other"
		    onchange="countFundAuto('prj_','supper,middle,primary,other','total');"
		    style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/organization/prj_other" />"/>
		</td>
	</tr>
</table>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
	   
	  if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
		}
		
		return false;
		}
	
	
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
		
	}
</script>
